package com.smedi.ismedi.personnel.core.port.adapter.service;

import com.github.tobato.fastdfs.domain.fdfs.StorePath;
import javax.servlet.http.HttpServletResponse;
import java.io.*;

/**
 * @Author: xulinjun
 * @Date: 2021-6-9 10:25
 */
public interface FdfsClientService {
    StorePath uploadFileStream(InputStream stream, String fileName) throws Exception;

    StorePath uploadFile(File file) throws Exception;

    byte[] downloadFile(HttpServletResponse response, String group, String path, String fileName) ;

    void deleteFile(String group, String path);
}
